<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%base_goods_gh}}".
 *
 * @property integer $id
 * @property integer $qgd_id
 * @property integer $ghs_id
 * @property double $jg
 * @property string $bzq
 * @property string $fhdz
 * @property string $bz
 * @property string $addtime
 * @property integer $status
 */
class BaseGoodsGh extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%base_goods_gh}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['qgd_id', 'ghs_id', 'status','xj','cs','qym'], 'integer'],
            [['jg'], 'number'],
            [['bz'], 'string'],
            [['bzq'], 'string', 'max' => 50],
            [['fhdz','ghs_tel'], 'string', 'max' => 255],
            [['addtime','ghs_name'], 'string', 'max' => 25]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'qgd_id' => '求购单ID',
            'ghs_id' => '供货商ID',
            'jg' => '供货价格',
            'bzq' => '保质期',
            'fhdz' => '发货地址',
            'bz' => '备注',
            'addtime' => '插入时间',
            'status' => '状态  3失败1进行中2成功',
            'ghs_name' => '供货商名称',
            'ghs_tel' => '供货商电话',
            'xj' => '新旧',
            'cs' => '1完好 0残损',
            'qym' => '1有区域码0无区域码',
        ];
    }
}
